package com.omt.tarjimdinek.util;

/**
 * Used to constants
 * @author chabane
 *
 */
public class Constant {

	/** Used to sending an email to members */
	public static final String NO_REPLY_EMAIL = "noreply@tarjim-dinek.com";
	
	/** an email regex */
	public static final String REGEX_EMAIL = "([_A-Za-z0-9-]+)(\\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\\.[A-Za-z0-9-]+)*(\\.[A-Za-z]{2,})";
	
	/** an uuid regex */
	public static final String REGEX_UUID = "([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})";

	/** youtube url regex */
	public static final String YOUTUBE_URL = "http.*\\?v=([a-zA-Z0-9_\\-]+)(?:&.)*";
	
	/** web site address */
	public static final String HOST = "http://localhost:8080/tarjim-dinek-1.0.0-SNAPSHOT";
	
	/** mail helper model */
	public static final String MAIL_MODEL = "main.mail.helper.model";
	
	/** redirect parameter */
	public static final String REDIRECT = "?faces-redirect=true";
}
